<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$pager= $pages->getRelatedPages();
$relatedPageCnt = count($pager);
if($relatedPageCnt>0)
    {
        echo "<div class='relate'>Related Pages</div>";
        for($i=0;$i<$relatedPageCnt;$i++)
        {
            $url = $fxn->processURL("page", $pager[$i]->contentid, $pager[$i]->pagetitle, $directlink);
            echo "<a href='$url' target='".$pager[$i]->target."'>".$pager[$i]->pagetitle."</a><br />";
        }
    }
    

?>
